package cn.odore.org.domain;

import cn.odore.basic.domain.BasicDomain;
import lombok.Data;

import java.util.List;

/**
 * 部门实体类
 */
@Data
public class Department extends BasicDomain {
    /*部门编号*/
    private String sn;
    /*部门名称*/
    private String name;
    /*暂时不用*/
    private String dirPath;
    /*部门状态 0 正常 ，-1 停用*/
    private Integer state;
    /*部门经理 和员工关联*/
    private Employee manager;
    /* 上级部门 */
    private Department parent;
    /* 下级部门 */
    private List<Department> children;

    private Long manager_id;
    private Long parent_id;
}
